package com.ruoyi.community.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告资源对象 ad_resource
 * 
 * @author ruoyi
 * @date 2021-08-23
 */
public class AdResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /** 广告商 */
    @Excel(name = "广告商")
    private String advertiser;

    /** 合同开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 合同结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 广告费 */
    @Excel(name = "广告费")
    private BigDecimal cost;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 广告语 */
    private String content;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String pictureUrl;

    /** 视频地址 */
    @Excel(name = "视频地址")
    private String videoUrl;

    /** $column.columnComment */
    @Excel(name = "视频地址")
    private Integer communityId;

    public AdResource() {
    }

    public AdResource(Long id, String status) {
        this.id = id;
        this.status = status;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAdvertiser(String advertiser) 
    {
        this.advertiser = advertiser;
    }

    public String getAdvertiser() 
    {
        return advertiser;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPictureUrl(String pictureUrl) 
    {
        this.pictureUrl = pictureUrl;
    }

    public String getPictureUrl() 
    {
        return pictureUrl;
    }
    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }
    public void setCommunityId(Integer communityId)
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId()
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("advertiser", getAdvertiser())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("cost", getCost())
            .append("status", getStatus())
            .append("content", getContent())
            .append("type", getType())
            .append("pictureUrl", getPictureUrl())
            .append("videoUrl", getVideoUrl())
            .append("communityId", getCommunityId())
            .toString();
    }
}
